package com.duoduo.selenium.demo;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import com.duoduo.selenium.util.SeleniumUtil;

public class BaiduTest {

	public static void main(String[] args) {
		SeleniumUtil.setProperties();

		WebDriver driver = new FirefoxDriver();
		driver.get("https://www.baidu.com/");
		driver.findElement(By.id("kw")).click();
		driver.findElement(By.id("kw")).clear();
		driver.findElement(By.id("kw")).sendKeys("selenium java");
		driver.findElement(By.id("su")).click();
	}
}
